package com.meteor.service.impl;

import com.meteor.dao.DreamCommentMapper;
import com.meteor.pojo.Comment;
import com.meteor.pojo.DreamComment;
import com.meteor.service.DreamCommentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DreamCommentServiceImpl implements DreamCommentService {

    @Resource
    private DreamCommentMapper dreamCommentMapper;

    @Override
    public int addDreamComment(DreamComment comment) {
        return dreamCommentMapper.insertDreamComment(comment);
    }

    @Override
    public List<DreamComment> queryDreamComment() {
        return dreamCommentMapper.selectDreamComment();
    }
}
